package cn.usian.config;

import cn.usian.client.CategoryClientFallbackFactory;
import cn.usian.client.EmployeeClientFallbackFactory;
import cn.usian.entity.Category;
import feign.Logger;
import org.springframework.context.annotation.Bean;

public class DefaultFeignConfiguration {
    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.BASIC; // 日志级别为BASIC
    }
    @Bean
    public EmployeeClientFallbackFactory userClientFallbackFactory(){
        return new EmployeeClientFallbackFactory();
    }
    @Bean
    public CategoryClientFallbackFactory categoryClientFallbackFactory(){
        return new CategoryClientFallbackFactory();
    }
}
